<?php
namespace app\validate;

use think\facade\Request;
use think\Validate;

class DriverValidate extends  Validate{



    protected $rule =   [
        'name'=> 'require',
        'mobile'=>'require',
        'age'=>'require',
        'card_no'=>'require',
        'residence_address'=>'require',
        'login_pass'=>'require',
        'work_type'=>'require',
        'license_type_id'=>'require',
        'license_pic1'=>'require',
        'license_pic2'=>'require',
    ];

    protected $message  =   [


        'name.require' => '姓名不能为空',
        'mobile.require' => '手机号不能为空',
        'age.require' => '年龄不能为空',
        'card_no.require' => '身份证号不能为空',
        'goods_type.require' => '货物类型不能为空',
        'enterprise_name.require' => '企业名称不能为空',
        'address.require' => '仓库名称不能为空',
        'warehouse_type_id.require' => '仓库类型不能为空',
        'longitude.require' => '经度不能为空',
        'dimension.require' => '维度不能为空',
        'warehouse_reserves.require' => '仓库储量不能为空',



    ];
}